function fbcen_gdocs(formKey){
	FB.Event.subscribe('comment.create', function(response) {

		var pageURL = response.href;

		var pageTitle = '';
		if($('.fbcomments').length > 0){pageTitle = $('.fbcomments[href="'+pageURL+'"]').attr('title');}
		else {pageTitle = $('.fb-comments[href="'+pageURL+'"]').attr('data-title');}
		if(pageTitle == undefined){pageTitle = $('meta[property="og:title"]').attr('content');}
		if(pageTitle == undefined){pageTitle = $('title').html();}

		FB.api({
			method: 'fql.multiquery',
			queries: {
				comment: 'SELECT xid, object_id, post_id, fromid, text, id, username, reply_xid, post_fbid FROM comment WHERE object_id IN (SELECT comments_fbid FROM link_stat WHERE url ="'+ pageURL +'") ORDER BY time desc LIMIT 1',
				user: 'SELECT id, name, url, pic_square FROM profile WHERE id IN (SELECT fromid FROM #comment)'
			}
		},
			function(response) {
				comment = response[0].fql_result_set;
				user = response[1].fql_result_set;

			

				// Comment URL
				var commentURL = pageURL +'?fb_comment_id=fbc_'+ comment[0].id +'_'+ comment[0].object_id;
				
				$.post('https://docs.google.com/spreadsheet/formResponse?formkey='+formKey+'',{ 'entry.0.single': pageTitle, 'entry.1.single': pageURL, 'entry.2.single': user[0].name, 'entry.3.single': comment[0].text, 'entry.4.single': commentURL, 'entry.5.single': 'http://developers.facebook.com/tools/comments' });
			}
		);
	});
}